const router = require('koa-router')()
// 学生
const CategoryController = require('../controllers/article');
 
router.prefix('/api')
/**
 * 学生接口
 */
//创建学生
router.post('/article/create',CategoryController.create);
//获取菜单详情
router.get('/article/:id',CategoryController.detail)
// 查询全部菜单
router.get('/article',CategoryController.categoryList)
router.delete('/article/:id',CategoryController.delete)
 
module.exports = router